/**
 Created by sunhao on 2016/4/21.
 */
$(document).ready(function () {
    //咨询中心省略内容
    var text = $('.news-list ul li p'), str = '', textLength = 150;
    text.each(function(){
        str = $(this).html()
        console.log(textLength)
        if (str.length > textLength) {
            $(this).html(str.substring(0, textLength) + "... ...")
        }
    })
});